package lesson03;


import javax.swing.*;
import java.awt.*;

public class JFrameDemo02 extends JFrame {
    public static void main(String[] args) {
         new JFrameDemo02().init();
    }

    public void init(){
        this.setBounds(10,10,200,200);
        JLabel jl=new JLabel("JLabel");
        this.add(jl);

        Container container=this.getContentPane();
        container.setBackground(Color.red);
        setVisible(true);
    }
}
